#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
def song_decoder(str):
    list=str.split('WUB')
    for i in range(len(list)):
        if(list[i]==''):
            del list[i]
        print list[i],
        
song_decoder("WUBWEWUBAREWUBWUBTHEWUBCHAMPIONSWUBMYWUBFRIENDWUB")
'''

def song_decoder(str):
    list=str.split('WUB')
    while '' in list:
        list.remove('')
    return ' '.join(list)  #！将列表元素以’ ‘间的内容连接
        
print song_decoder("WUBWEWUBAREWUBWUBTHEWUBCHAMPIONSWUBMYWUBFRIENDWUB")